#include<bits/stdc++.h>
using namespace std;
const int N=1e5+10;
int n,r[N],ans[N];
bool vis[N];
int main(){
    freopen("duel.in","r",stdin);
    freopen("duel.out","w",stdout);
    scanf("%d",&n);
    for(int i=1;i<=n;i++)scanf("%d",&r[i]);
    sort(r+1,r+1+n);
    int ans=n;
    for(int i=1;i<=n;i++){
        for(int j=i;j<=n;j++){
                if(r[j]>r[i]&&!vis[j]){
                    vis[j]=vis[i]=true;
                    ans--;
                    break;
                }
        }
    }
    printf("%d",ans);
    return 0;
}


